package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.SearchKeyword;

import java.util.List;
import java.util.Map;

/**
 * @author Michael Wang
 */
public interface SearchKeywordManager {

    void saveSearchKeywordList(DataSourceKey key, List<SearchKeyword> keywordList);

    Map<String, Integer> sumEachKeyword(DataSourceKey key);

    void clearKeywords(DataSourceKey key);

    List<SearchKeyword> getSearchKeywords(DataSourceKey key, String keyword);

    List<SearchKeyword> getTimeSortedKeywords(DataSourceKey key);
}
